<?php
//后台用户
$this->group(['prefix' => 'admin/configs/banner'], function() {

    $this->get('/view/list', 'BannerController@getLists');

    $this->get('/view/{id}', 'BannerController@getOne')->where('id','[0-9]+');

    $this->post('/update/','BannerController@postUpdate');

    $this->delete('/delete/{id}', 'BannerController@deleteOne')->where('id','[0-9]+');
});